package com.wonders.hisdoctor.station.project.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>电子病历个人模板主表</p>
 * <p>db_table: WDEDITOR_PRITEMPLATEMASTER</p>
 * @author tong-aj
 * @date 2021/04/13
 */
@ApiModel("电子病历个人模板主表")
@Accessors(chain = true)
@Data
@ToString
@TableName("WDEDITOR_PRITEMPLATEMASTER")
public class WdeditorPritemplatemaster implements Serializable {

    private static final long serialVersionUID = -8395857593990893437L;

    /** `主键` db_field: T_ID; desc: 个人模板主表ID */
    @ApiModelProperty("个人模板主表ID")
    @TableId
    @NotNull(message = "个人模板主表ID不能为空", groups = PrimaryGroup.class)
    @TableField("T_ID")
    private String tId;

    /** db_field: TEMPLATE_NAME; desc: 个人模板名称 */
    @ApiModelProperty("个人模板名称")
    @TableField("TEMPLATE_NAME")
    private String templateName;

    /** db_field: OPERATE; desc: 医生工号 */
    @ApiModelProperty("医生工号")
    @TableField("OPERATE")
    private String operate;

    /** db_field: ORG_ID; desc: 机构ID */
    @ApiModelProperty("机构ID")
    @TableField("ORG_ID")
    private String orgId;

    /** db_field: UPDATE_TIME; desc: 更新时间 */
    @ApiModelProperty("更新时间")
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy/MM/dd")
    @DateTimeFormat(pattern = "yyyy/MM/dd")
    private Date updateTime;

    /** db_field: EFFECTIVE_DEPT; desc: 有效科室 */
    @ApiModelProperty("有效科室")
    @TableField("EFFECTIVE_DEPT")
    private String effectiveDept;

    /** db_field: CREATE_DEPT; desc: 创建科室 */
    @ApiModelProperty("创建科室")
    @TableField("CREATE_DEPT")
    private String createDept;

    /** db_field: CREATE_TIME; desc: 创建时间 */
    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date createTime;

}